package com.example.lifecycle;

import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

public class test2 extends AppCompatActivity {

    private static final String TAG1 = "test2";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test2);
        Log.d(TAG1,"This is test1 in test2");
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.d(TAG1,"This is onStart in test2");
    }

    @Override
    protected void onRestart (){
        super.onRestart();
        Log.d(TAG1,"This is onRestart in test2");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.d(TAG1,"This is onResume in test2");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.d(TAG1,"This is onPause in test2");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.d(TAG1,"This is onStop in test2");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.d(TAG1,"This is onDestroy in test2");
    }

}
